<script setup lang="ts">

import {reactive,ref} from "vue";
import Previous from "@/components/Previous/Previous.vue";
const dialogFormVisible = ref(false)
const formLabelWidth = '140px'
const form = reactive({
  delivery:false
})
const tableData =ref("")
</script>

<template>
  <Previous></Previous>
  <div class="common-layout">
    <el-container>
      <el-header>
        <div>
          <span>
            当前试题总分值为：89分
          </span>
          <el-button style="float: right" type="primary" @click="dialogFormVisible = true">选择课程</el-button>
        </div>

      </el-header>
      <el-main>
        <div class="result">
          <el-table :data="tableData" border style="width: 100%">
            <el-table-column prop="name" label="序号" width="100" />
            <el-table-column prop="name" label="题目" width="200" />
            <el-table-column prop="name" label="分类" width="190" />
            <el-table-column prop="time" label="题目类型" width="190" />
            <el-table-column prop="blur" label="分值" width="150" />
            <el-table-column prop="blur" label="答案" width="150" />
            <el-table-column prop="blur" label="选项个数" />
          </el-table>
        </div>
        <el-dialog v-model="dialogFormVisible" title="选择课程">
          <el-form :model="form">
            <el-form-item label="课程" :label-width="formLabelWidth">
              <el-select v-model="form" placeholder="选择课程">
                <el-option label="Zone No.1" value="shanghai" />
                <el-option label="Zone No.2" value="beijing" />
              </el-select>
            </el-form-item>
          </el-form>
          <template #footer>
      <span class="dialog-footer">
        <el-button @click="dialogFormVisible = false">Cancel</el-button>
        <el-button type="primary" @click="dialogFormVisible = false">
          Confirm
        </el-button>
      </span>
          </template>
        </el-dialog>

      </el-main>
    </el-container>
  </div>
</template>

<style scoped>

</style>